package com.jsoft.model;

import com.jsoft.model.core.BaseDao;

import javax.persistence.*;
import java.util.List;

/**
 * Date: 15.08.13
 * Time: 13:54
 */

@Entity
@Table(name = "departments")
public class DepartmentDao extends BaseDao {
    @Column(name = "name")
    private String name;
    @Column(name = "address")
    private String address;
    @OneToMany(mappedBy = "department")
    private List<SectorDao> sectorList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<SectorDao> getSectorList() {
        return sectorList;
    }

    public void setSectorList(List<SectorDao> sectorList) {
        this.sectorList = sectorList;
    }
}
